<!--
 * @Descripttion: 
 * @version: 
 * @Author: hollow
 * @Date: 2021-03-23 16:51:43
 * @LastEditors: sueRimn
 * @LastEditTime: 2021-03-23 19:43:26
-->
<template>
  <div class="container">
    <header>
      <van-icon name="like-o" size="30" @click="color()" class="co" />
      <div>
        <van-icon name="chat-o" size="30" />
        <van-icon name="discount" size="30" />
      </div>
    </header>
    <main>
      <dl>
        <dt>
          <img
            src="https://dss1.bdstatic.com/70cFuXSh_Q1YnxGkpoWK1HF6hhy/it/u=3392663359,4194879068&fm=26&gp=0.jpg"
          />
        </dt>
        <dd>
          <h3>墨刀的刀</h3>
          <button>我的主页></button>
        </dd>
      </dl>
      <div class="main2">
        <dl>
          <dt>
            <img
              src="https://dss1.bdstatic.com/70cFuXSh_Q1YnxGkpoWK1HF6hhy/it/u=3392663359,4194879068&fm=26&gp=0.jpg"
            />
          </dt>
          <dd>
            <p>我的订单</p>
          </dd>
        </dl>
        <dl>
          <dt>
            <img
              src="https://dss1.bdstatic.com/70cFuXSh_Q1YnxGkpoWK1HF6hhy/it/u=3392663359,4194879068&fm=26&gp=0.jpg"
            />
          </dt>
          <dd>
            <p>我的卡券</p>
          </dd>
        </dl>
        <dl>
          <dt>
            <h2>0</h2>
          </dt>
          <dd>
            <p>我的余额</p>
          </dd>
        </dl>
      </div>
      <div class="btm">
        <span>我的收藏</span>
        <p>></p>
      </div>
      <div class="btm">
        <span>推广赚钱</span>
        <p>></p>
      </div>
      <div class="btm">
        <span>手机账号安全中心</span>
        <p>></p>
      </div>
      <div class="btm">
        <span>帮助与反馈</span>
        <p>></p>
      </div>
      <div class="btm">
        <span>给我们好评</span>
        <p>></p>
      </div>
    </main>
    <footer>
      <p @click="jump1()">退出登录</p>
      <span>(手机账号)</span>
    </footer>
  </div>
</template>

<script>
import { Icon } from 'vant';
import Vue from 'vue';
Vue.use(Icon);
export default {
  methods: {
    color() {
      document.querySelector('.co').style.color = "red"
    },
    jump1() {
      this.$router.push({
        path: "/home"
      })
    }
  },
}
</script>

<style lang="scss">
* {
  margin: 0;
  padding: 0;
  list-style: none;
}
html,
body,
#app {
  width: 100%;
  height: 100%;
}
.container {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
header {
  width: 100%;
  height: 70px;
  display: flex;
  box-sizing: border-box;
  align-items: center;
  padding: 0 10px;
  justify-content: space-between;
  .van-icon-chat-o::before {
    margin-right: 34px;
  }
  border-bottom: solid 1px #f2f2f2;
}
main {
  overflow-y: scroll;
  background-color: #f2f2f2;
  flex: 1;
  > dl {
    background-color: #fff;
    width: 100%;
    height: 120px;
    display: flex;
    align-items: center;
    img {
      width: 80px;
      height: 80px;
      border-radius: 50%;
      border: solid 1px #ccc;
      line-height: 80px;
      margin-right: 30px;
    }
    dd {
      button {
        border: solid 1px #ccc;
        border-radius: 10px;
        height: 30px;
        width: 100px;
        outline: none;
        padding: 2px 4px;
        background-color: #fff;
        margin-top: 20px;
      }
    }
  }
  .main2 {
    background-color: #fff;
    width: 100%;
    height: 160px;
    align-items: center;
    display: flex;
    justify-content: space-around;
    dl {
      img {
        width: 80px;
        height: 80px;
      }
    }
    dl:nth-child(3) {
      margin-top: 50px;
      h2 {
        color: red;
      }
    }
  }
  .btm {
    background-color: #ffff;
    width: 100%;
    height: 60px;
    display: flex;
    justify-content: space-between;
    box-sizing: border-box;
    padding: 0 15px;
    align-items: center;
    margin-bottom: 10px;
  }
}
footer {
  width: 100%;
  height: 50px;
  display: flex;
  margin-left: 120px;
  align-items: center;
  p {
    color: red;
    margin-right: 10px;
  }
}
</style>